package com.gds.wiki.cloud.admin.server.modular.member;


import com.gds.wiki.cloud.framework.common.dto.ResponseDto;
import com.gds.wiki.cloud.framework.web.common.BaseController;
import com.gds.wiki.cloud.memberCenter.client.member.api.MemberApi;
import com.gds.wiki.cloud.memberCenter.client.member.model.Member;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiImplicitParam;
import io.swagger.annotations.ApiImplicitParams;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@Api(value = "MemberController", tags = "后台会员控制器-会员管理")
@RestController
@RequestMapping("member")
@Validated
public class MemberController extends BaseController {

    @Autowired
    private MemberApi memberApi;


    @PostMapping("getMember")
    @ApiOperation(value = "获取会员", notes = "获取会员", httpMethod = "POST")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "Authorization", value = "请输入凭证", required = true, dataType = "String", paramType = "header")}
          )
    public void asd(){
//        Member member=new Member();
//        member.setLoginName("test111");
//        ResponseDto a=memberApi.getListBySelf(member);
//
//        System.out.println(a.getCode()+"&&&&&&&");
//        System.out.println( memberApi.test()+"******asdasd11111111********");
    }

}
